<?php

use Monolog\Handler\StreamHandler;

return [

    /*
    |--------------------------------------------------------------------------
    | Default Log Channel
    |--------------------------------------------------------------------------
    |
    | This option defines the default log channel that gets used when writing
    | messages to the logs. The name specified in this option should match
    | one of the channels defined in the "channels" configuration array.
    |
    */

    'default' => env('LOG_CHANNEL', 'stack'),

    /*
    |--------------------------------------------------------------------------
    | Log Channels
    |--------------------------------------------------------------------------
    |
    | Here you may configure the log channels for your application. Out of
    | the box, Laravel uses the Monolog PHP logging library. This gives
    | you a variety of powerful log handlers / formatters to utilize.
    |
    | Available Drivers: "single", "daily", "slack", "syslog",
    |                    "errorlog", "monolog",
    |                    "custom", "stack"
    |
    */

    'channels' => [
        'stack' => [
            'driver' => 'stack',
            'channels' => ['single'],
        ],
        'daily' => [
            'driver' => 'daily',
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
            'days' => 7,
        ],
        'elec' => [
            'driver' => 'single',
            'path' => storage_path('elec/elec.log'),
            'level' => 'debug',
        ],

        'invoice' => [
            'driver' => 'daily',
            'path' => storage_path('invoice/invoice.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'withhold' => [
            'driver' => 'daily',
            'path' => storage_path('withhold/withhold.log'),
            'level' => 'debug',
            'days' => 7,
        ],
        'single' => [
            'driver' => 'daily',
            'path' => storage_path('logs/laravel.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'nongjin' => [
            'driver' => 'daily',
            'path' => storage_path('nongjin/nongjin.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'leshuaunion' => [
            'driver' => 'daily',
            'path' => storage_path('leshuaunion/leshuaunion.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'errororder' => [
            'driver' => 'daily',
            'path' => storage_path('errororder/errororder.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'wftpay' => [
            'driver' => 'daily',
            'path' => storage_path('wftpay/wftpay.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'cib' => [
            'driver' => 'daily',
            'path' => storage_path('cib/cib.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'quota' => [
            'driver' => 'daily',
            'path' => storage_path('quota/quota.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'syncOrder' => [
            'driver' => 'daily',
            'path' => storage_path('syncOrder/syncOrder.log'),
            'level' => 'debug',
            'days' => 14,
        ],

        'searchOrder' => [
            'driver' => 'daily',
            'path' => storage_path('searchOrder/searchOrder.log'),
            'level' => 'debug',
            'days' => 14,
        ],

        'notify' => [
            'driver' => 'daily',
            'path' => storage_path('notify/notify.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'income' => [
            'driver' => 'daily',
            'path' => storage_path('income/income.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'auth' => [
            'driver' => 'daily',
            'path' => storage_path('auth/auth.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'iot' => [
            'driver' => 'daily',
            'path' => storage_path('iot/iot.log'),
            'level' => 'debug',
            'days' => 7,
        ],
        'lianfu' => [
            'driver' => 'daily',
            'path' => storage_path('lianfu/lianfu.log'),
            'level' => 'debug',
            'days' => 30,
        ],
        'vbill' => [
            'driver' => 'daily',
            'path' => storage_path('vbill/vbill.log'),
            'level' => 'debug',
            'days' => 30,
        ],


        'gtxy' => [
            'driver' => 'daily',
            'path' => storage_path('gtxy/gtxy.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'youchu' => [
            'driver' => 'daily',
            'path' => storage_path('youchu/youchu.log'),
            'level' => 'debug',
            'days' => 30,
        ],
        'easypay' => [
            'driver' => 'daily',
            'path' => storage_path('easypay/easypay.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'hwcpay' => [
            'driver' => 'daily',
            'path' => storage_path('hwcpay/hwcpay.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'upload' => [
            'driver' => 'daily',
            'path' => storage_path('upload/upload.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'bug' => [
            'driver' => 'daily',
            'path' => storage_path('bug/bug.log'),
            'level' => 'debug',
            'days' => 30,
        ],


        'company' => [
            'driver' => 'daily',
            'path' => storage_path('company/company.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'bill-query' => [
            'driver' => 'daily',
            'path' => storage_path('notify/bill-query.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'notify-pay' => [
            'driver' => 'daily',
            'path' => storage_path('notify/notify-pay.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'redirect' => [
            'driver' => 'daily',
            'path' => storage_path('redirect/redirect.log'),
            'level' => 'debug',
            'days' => 7,
        ],


        'notify-query' => [
            'driver' => 'daily',
            'path' => storage_path('notify/notify-query.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        "notify-refund" => [
            'driver' => 'daily',
            'path' => storage_path('notify/notify-refund.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'pay' => [
            'driver' => 'daily',
            'path' => storage_path('pays/pay-params.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'amqp' => [
            'driver' => 'daily',
            'path' => storage_path('amqp/redis_amqp.log'),
            'level' => 'debug',
            'days' => 14,
        ],

        'refund' => [
            'driver' => 'daily',
            'path' => storage_path('refund/refund.log'),
            'level' => 'debug',
            'days' => 7,
        ],

        'waitpay' => [
            'driver' => 'daily',
            'path' => storage_path('waitpay/waitpay.log'),
            'level' => 'debug',
            'days' => 14,
        ],

        'file_permission' => [
            'driver' => 'daily',
            'path' => storage_path('file_permission/file_permission.log'),
            'level' => 'debug',
            'days' => 1,
        ],

        'slack' => [
            'driver' => 'slack',
            'url' => env('LOG_SLACK_WEBHOOK_URL'),
            'username' => 'Laravel Log',
            'emoji' => ':boom:',
            'level' => 'critical',
        ],

        'stderr' => [
            'driver' => 'monolog',
            'handler' => StreamHandler::class,
            'with' => [
                'stream' => 'php://stderr',
            ],
        ],

        'syslog' => [
            'driver' => 'syslog',
            'level' => 'debug',
        ],

        'errorlog' => [
            'driver' => 'errorlog',
            'level' => 'debug',
        ],

        'cmbc_union' => [
            'driver' => 'daily',
            'path' => storage_path('cmbc_union/cmbc_union.log'),
            'level' => 'debug',
            'days' => 30,
        ],


        'lianhou' => [
            'driver' => 'daily',
            'path' => storage_path('lianhou/lianhou.log'),
            'level' => 'debug',
            'days' => 30,
        ],


        'lakala' => [
            'driver' => 'daily',
            'path' => storage_path('lakala/lakala.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'lakalaunion' => [
            'driver' => 'daily',
            'path' => storage_path('lakalaunion/lakalaunion.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'websocket' => [
            'driver' => 'daily',
            'path' => storage_path('websocket/websocket.log'),
            'level' => 'debug',
            'days' => 7,
            'permission' => 0777,
        ],

        'zgyd' => [
            'driver' => 'daily',
            'path' => storage_path('zgyd/zgyd.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'zgjl' => [
            'driver' => 'daily',
            'path' => storage_path('zgjl/zgjl.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'embedPay' => [
            'driver' => 'daily',
            'path' => storage_path('embedPay/embedPay.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'goods' => [
            'driver' => 'daily',
            'path' => storage_path('goods/goods.log'),
            'level' => 'debug',
            'days' => 30,
        ],

        'order_query' => [
            'driver' => 'daily',
            'path' => storage_path('order_query/order_query.log'),
            'level' => 'debug',
            'days' => 30,
        ],
    ],

];
